var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            if (cm.isQuestFinished(41207)) {
                cm.sendNormalTalk("(埃德尔斯坦议会长阿贝尔特退任投票被否决的公文。)", 0, 2450023, false, true)
            } else {
                cm.sendNormalTalk("(贴着各种乱七八糟的广告)", 0, 2450023, false, true)
            }
            if (!cm.isQuestActive(41207)) {
                cm.dispose()
            }
        } else {
            if (status === a++) {
                cm.sendNormalTalk("请愿书……贴在这里应该可以了吧？", 2, 2450023, true, true)
            } else {
                if (status === a++) {
                    cm.updateInfoQuest(41207, "clear=clear");
                    cm.gainItem(4033837, -1);
                    cm.dispose()
                }
            }
        }
    }
};